﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Download.aspx.cs" Inherits="Download" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var updateProgress = null;

        function postbackButtonClick() {
            updateProgress = $find("<%= UpdateProgress1.ClientID %>");
            alert(updateProgress.get_displayAfter());
            window.setTimeout("updateProgress.set_visible(true)", updateProgress.get_displayAfter());
            return true;
        }


        function pageLoad(sender, args) {
            if (args.get_isPartialLoad()) {
                alert('patial');
            }
        }

</script>


</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <div style="z-index: 300; position: fixed; top: 50%; left: 50%; margin-top: -100px;
        margin-left: -100px;">
        <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpDDashBoard"
            runat="server" DisplayAfter="1">
            <ProgressTemplate>
                <asp:Image ID="ImgUpdateProgressUpDDashBoard" runat="server" ImageUrl="ajax-loader11.gif" />
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>

    <div>
        <asp:UpdatePanel runat="server" ID="UpDDashBoard">
            <ContentTemplate>
                
            </ContentTemplate>
            
        </asp:UpdatePanel>
    </div>
    <asp:Button ID="Button1" runat="server" ClientIDMode="Static" Text="Button" OnClick="Button1_Click" OnClientClick="return postbackButtonClick();"/>


   
    </form>
</body>
</html>
